<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition template="./../../Template/generalTemplate.xhtml">

            <ui:define name="content">

                <h:form id="form2" prependId="false">
                    <f:view beforePhase="#{editSalesInquiryManagedBean.initView}">
                        <p:panel id="inquiry" header="New Sales Inquiry" style="height:495px;">
                            <div style="margin-top:80px;margin-left:200px;">   
                                <h:panelGrid id="grid" columns="2">

                                    <h:outputText value="Company Name:" />  
                                    <h:outputText value="#{editSalesInquiryManagedBean.inquiry.company.name}" />

                                    <h:outputText value="Classic Nutri Bar-Nuts (in cases):"/>
                                    <h:inputText value="#{editSalesInquiryManagedBean.quantity1}"/>

                                    <h:outputText value="Classic Nutri Bar-Fruits (in cases):"/>
                                    <h:inputText value="#{editSalesInquiryManagedBean.quantity2}"/>

                                    <h:outputText value="Premium Power Bar-Chocolate Nuts (in cases):"/>
                                    <h:inputText value="#{editSalesInquiryManagedBean.quantity3}"/>

                                    <h:outputText value="Premium Power Bar-Redcurrant Fruits (in cases):"/>
                                    <h:inputText value="#{editSalesInquiryManagedBean.quantity4}"/>

                                </h:panelGrid>
                                <p:commandButton value="Save"  ajax="false"  actionListener="#{editSalesInquiryManagedBean.saveInquiryChange}" />
                                <p:commandButton value="Cancel"  ajax="false"  actionListener="#{editSalesInquiryManagedBean.inquiryCancel}" /> 
                            </div>
                        </p:panel>
                    </f:view>
                </h:form>

            </ui:define>



        </ui:composition>

    </body>
</html>
